﻿using BMS.Visitor.Model.Entities;
using BMS.Visitor.Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BMS.Visitor.BL
{
    public class VisitorBusinessLogic : IBusinessLogic<BMS.Visitor.Model.Entities.Visitor>
    {
        IDaoHelper<BMS.Visitor.Model.Entities.Visitor> visitor;

        public void Save(BMS.Visitor.Model.Entities.Visitor persistenceObject)
        {
            visitor = new DaoVisitorNHibernate();
            visitor.Save(persistenceObject);
        }

        public List<BMS.Visitor.Model.Entities.Visitor> List()
        {
            visitor = new DaoVisitorNHibernate();
            return visitor.List();
        }
    }
}
